declare global {
    interface HeroHelperConfig {
        art: string;
        model: string;
        portrait: string;
        action?: (p?: any) => void;
        buffType?: AppBuffType;
        isAll?: boolean;
        modelScale?: number;
    }
}

export const heroHelperConfig: { [index: string]: HeroHelperConfig } = {
    // 信天翁
    H2xt: {
        model: 'units\\critters\\Albatross\\Albatross.mdx',
        portrait: 'units\\critters\\Albatross\\Albatross_portrait.mdx',
        art: 'ReplaceableTextures\\CommandButtons\\BTNAlbatross.blp',
        buffType: {
            id: 'buff_hep_xintianweng',
            class: 'hep_buff',
            attribute: {
                move_speed_p: 0.05,
                attackSpd_p: 0.05,
            },
            targetArt: 'Abilities\\Spells\\Other\\GeneralAuraTarget\\GeneralAuraTarget.mdl',
            targetAttach: 'origin',
        },
        isAll: true,
    },
    // 水元素
    H2we: {
        modelScale: 0.3,
        model: 'Units\\Creeps\\SeaElemental\\SeaElemental.mdx',
        portrait: 'Units\\Creeps\\SeaElemental\\SeaElemental_portrait.mdx',
        art: '',
        buffType: {
            id: 'buff_hep_shuiyuansu',
            class: 'hep_buff',
            attribute: {
                冰系伤害减免百分比: 0.1,
                冰系伤害增强: 0.1,
            },
            targetArt: 'Abilities\\Spells\\Other\\GeneralAuraTarget\\GeneralAuraTarget.mdl',
            targetAttach: 'origin',
        },
    },
    // 白牛
    H2nt: {
        modelScale: 0.3,
        model: 'units\\orc\\spiritwalker\\spiritwalker.mdx',
        portrait: 'units\\orc\\spiritwalker\\spiritwalker_portrait.mdx',
        art: '',
        buffType: {
            id: 'buff_hep_niutouren',
            class: 'hep_buff',
            attribute: {
                strength_p: 0.15,
                agility_p: 0.15,
            },
            targetArt: 'Abilities\\Spells\\Other\\GeneralAuraTarget\\GeneralAuraTarget.mdl',
            targetAttach: 'origin',
        },
    },
    // 战狼
    H2zl: {
        modelScale: 0.5,
        model: 'units\\creeps\\DireWolf\\DireWolf.mdx',
        portrait: 'units\\creeps\\DireWolf\\DireWolf_portrait.mdx',
        art: '',
        buffType: {
            id: 'buff_hep_zhanlang',
            class: 'hep_buff',
            attribute: {
                物理伤害倍率: 0.05,
                法术伤害倍率: 0.05,
            },
            targetArt: 'Abilities\\Spells\\Other\\GeneralAuraTarget\\GeneralAuraTarget.mdl',
            targetAttach: 'origin',
        },
        isAll: true,
    },
};
